

Pod::Spec.new do |spec|


spec.name         = "TCCKit"
spec.version      = "0.0.1"
spec.summary      = "iOS 组件化"

spec.description  = <<-DESC
iOS 组件化的封装
DESC

spec.homepage     = "https://e.coding.net/tucici/CCKit/CCKit.git"
# spec.screenshots  = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"


spec.license      = "MIT"
# spec.license      = { :type => "MIT", :file => "LICENSE" }
# spec.license      = { :type => "MIT", :file => "FILE_LICENSE" }


spec.author             = { "tucici" => "1763000128@qq.com" }
# Or just: spec.author    = "tucici"
# spec.social_media_url   = "https://twitter.com/tucici"


spec.platform     = :ios, "12"
spec.swift_version = '5.0'



#  When using multiple platforms
# spec.ios.deployment_target = "5.0"
# spec.osx.deployment_target = "10.7"
# spec.watchos.deployment_target = "2.0"
# spec.tvos.deployment_target = "9.0"



spec.source = { :git => "#{spec.homepage}", :tag => "#{spec.version}" }




#spec.source_files  = "TCCKit/TCCKit/**/*.{h,m,swift,strings}"
#spec.source_files  = "header/**/*.{h,m,swift,strings,xib}"
#spec.exclude_files = "Classes/Exclude"
#spec.public_header_files = "*.h"
#spec.prefix_header_file = "TCCKit/TCCKit/header/PrefixHeader.pch"
spec.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
'SWIFT_VERSION' => '5.0',
'VALID_ARCHS' => 'arm64 armv7 x86_64'
}
spec.ios.frameworks = "Foundation", "UIKit"

#spec.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
puts "Current directory: #{Dir.pwd}"
puts "TCC_Base files: #{Dir.glob('../TCC_Base/**/*.{h,m,swift,strings,xib}')}"

spec.subspec 'TCC_Base' do |ss|
ss.source_files = 'TCC_Base/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_BLE' do |ss|
ss.source_files = 'TCC_BLE/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Const' do |ss|
ss.source_files = 'TCC_Const/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Device' do |ss|
ss.source_files = '../TCC_Device/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Extension' do |ss|
ss.source_files = 'TCC_Extension/**/*.{h,m,swift,strings,xib}'
ss.dependency 'MJRefresh'
end

spec.subspec 'TCC_Http' do |ss|
ss.source_files = 'TCC_Http/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Layout' do |ss|
ss.source_files = 'TCC_Layout/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Moya' do |ss|
ss.source_files = 'TCC_Moya/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_Tool' do |ss|
ss.source_files = 'TCC_Tool/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_UI' do |ss|
ss.source_files = 'TCC_UI/**/*.{h,m,swift,strings,xib}'
ss.dependency 'SnapKit'
end

spec.subspec 'TCC_Resources' do |ss|
ss.source_files = 'TCC_Resources/**/*.{h,m,swift,strings,xib}'
end

spec.subspec 'TCC_MCU_OTA' do |ss|
ss.source_files = 'TCC_MCU_OTA/**/*.{h,m,swift,strings,xib}'
end

# spec.resources  = "TCCKit", "TCCKit/TCCKit/**/*.{xib}"
# spec.resources = "Resources/*.png"

# spec.preserve_paths = "FilesToSave", "MoreFilesToSave"

# spec.framework  = "SomeFramework"
# spec.library   = "iconv"
# spec.libraries = "iconv", "xml2"

# spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
#spec.dependency 'AFNetworking'
#spec.dependency 'MJExtension'
#spec.dependency 'SocketRocket'
#spec.dependency 'SDWebImage'
#spec.dependency 'MBProgressHUD'
#spec.dependency 'SVGAPlayer'
#spec.dependency 'Masonry'
#spec.dependency 'SnapKit'
#spec.dependency 'MJRefresh'

#'SocketRocket', 'SDWebImage', 'MBProgressHUD', 'SVGAPlayer', 'Masonry', 'SnapKit', 'MJRefresh'

#spec.requires_arc = true
end
